package com.shenglue.auxiliary;

public class SettleRemain {

	private float needSettle;  // 需要 结账的额度  。 某订单的总额
	private float hasSettle;   // 已经结掉的额度。 某订单的 结账单 的金额总和
	private boolean ifSettle;  // 是否已结清
	
	public float getNeedSettle() {
		return needSettle;
	}
	public void setNeedSettle(float needSettle) {
		this.needSettle = needSettle;
	}
	public float getHasSettle() {
		return hasSettle;
	}
	public void setHasSettle(float hasSettle) {
		this.hasSettle = hasSettle;
	}
	public boolean isIfSettle() { // 不设 set
		ifSettle = ( needSettle - hasSettle ) < 0.1 ;  // 考虑计算误差， 剩余 1角钱 就算结清了
		return ifSettle;
	}
	
}
